# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-livereload
_pkgname=livereload
pkgver=2.6.2
pkgrel=0
pkgdesc="livereload server in python"
url="https://github.com/lepture/python-livereload"
arch="noarch"
license="BSD-3-Clause"
replaces="py-livereload" # for backwards compatibility
provides="py-livereload=$pkgver-r$pkgrel" # for backwards compatibility
depends="py3-six py3-tornado python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
        cd "$builddir"
        python3 setup.py build
}

package() {
        cd "$builddir"
        python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="cb3daf132190d83d220cdf7cafe0081ed370618df50bde82fa00827796e6b146f8fb70897f8bf00bbeed6cabbd3b6a23727bebf18c0f542f772204f277b2ee9e  livereload-2.6.2.tar.gz"
